Skip to content

ci: refresh workflow pins and allow dependency ranges - #119

Merged
chaitanyapotti merged 2 commits into
mainfrom
ci/update-action-and-semgrep-pins
Nov 4, 2026
Merged

chaitanyapotti merged 2 commits into
mainfrom
ci/update-action-and-semgrep-pins

Conversation

@chaitanyapotti

@chaitanyapotti chaitanyapotti commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Motivation and Context

The workflows pin old GitHub Actions majors and Semgrep 1.136.0. Current releases are actions/checkout v7.0.1, actions/setup-node v7.1.0, actions/setup-python v7.1.0, and Semgrep 1.183.0.

The root manifest also pins every direct dependency to one version. Compatible updates should stay open. The lockfile still selects the installed versions.

Jira Link

N/A

Description

  • Pin actions/checkout to 3d3c42e5aac5ba805825da76410c181273ba90b1 (v7.0.1) in the validate, release, and security workflows.
  • Pin actions/setup-node to 949feb2413d6458794dcd2491c4babbbce0c15c1 (v7.1.0) in the validate and release workflows.
  • Pin actions/setup-python to 6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 (v7.1.0) in the security workflow.
  • Pin Semgrep to 1.183.0. The setuptools<81 install limit stays in place.
  • Leave changesets/action at ae32849d5ba541f9ae29e40e22a623bc13562f51 (v2.1.2). That pin is already the latest release.
  • Use a compatible range for each direct dependency in the root manifest: @changesets/cli, @lavamoat/harden, @types/node, typescript, and vite-plus.

actions/setup-node v7 caches npm when package.json contains a packageManager field. This repository has that field, so the validate and release workflows will use the npm cache.

How has this been tested?

  • Resolved each action pin against the latest GitHub release commit.
  • Ran npm test -- packages/torus-scripts/test/security-scanner-workflow.test.ts. The test passed.
  • Ran npm install --package-lock-only --ignore-scripts --dry-run. npm reported the tree up to date.
  • Did not run the full lint command or the full test suite.

Screenshots (if appropriate)

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Note

Low Risk
Changes are limited to CI action pins, a security scanner version bump, and looser devDependency ranges—no runtime product logic.

Overview
Updates CI to current pinned GitHub Actions releases and a newer Semgrep build across validate, release, and security workflows.

Workflow pins: actions/checkout → v7.0.1, actions/setup-node → v7.1.0 (validate + release), actions/setup-python → v7.1.0 (security), and Semgrep 1.136.0 → 1.183.0 (still with setuptools<81). changesets/action is unchanged.

Dependency specs: Several root devDependencies move from exact versions to caret ranges (@changesets/cli, @lavamoat/harden, @types/node, typescript, vite-plus), with matching package-lock.json updates.

With packageManager already set in package.json, setup-node v7 should start using npm caching in validate and release jobs.

Reviewed by Cursor Bugbot for commit 121f68f. Bugbot is set up for automated code reviews on this repo. Configure here.

Keep CI on supported action runtimes and the current Semgrep release.
@chaitanyapotti
chaitanyapotti requested a review from a team as a code owner November 4, 2026 06:09
Exact pins block patch and minor updates. The lockfile still selects the installed versions.
@chaitanyapotti chaitanyapotti changed the title ci: pin workflows to current action and Semgrep releases ci: refresh workflow pins and allow dependency ranges Nov 4, 2026
@chaitanyapotti
chaitanyapotti merged commit edd03a7 into main Nov 4, 2026
9 checks passed
@chaitanyapotti
chaitanyapotti deleted the ci/update-action-and-semgrep-pins branch November 4, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants